<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" data-table-id="BannerInfo">
    <div class="layui-card-body padding-left-40 layui-col-space10">
        <div class="layui-col-md12">
            <label class="layui-form-label">{:Lang("图片")}:</label>
            <div class="layui-col-xs2 text-center padding-top-15">
                <input type="hidden" name="image" value="{$vo.image|default=''}" required>
                <script>$('[name=image]').uploadOneImage();</script>
            </div>
        </div>
        <div class="layui-col-md12">
            <label class="layui-form-label">{:Lang("标题")}:</label>
            <div class="layui-input-block">

                <input name="name" required value='{$vo.name|default=""}' lay-verify="required" class="layui-input " vali-name="{:lang('标题')}" >
            </div>
        </div>
        <div class="layui-col-md12">
            <label class="layui-form-label">{:Lang("类型")}:</label>
            <div class="layui-input-block">

                {foreach $type_arr as $k=>$v}
                <input required type="radio" name="type" value="{$k}" title="{$v}"  {if $k eq $vo.type} checked {/if}>
                {/foreach}
            </div>
        </div>
        <div class="layui-col-md12">
            <label class="layui-form-label">{:Lang("链接")}:</label>
            <div class="layui-input-block">

                <input name="link" value='{$vo.link|default=""}' class="layui-input">
            </div>
        </div>

    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>

<script>


</script>